package com.service.impl;

import com.domain.Drug;
import com.dao.DrugDao;
import com.service.IDrugService;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2023-03-07
 */
@Service
public class DrugServiceImpl extends ServiceImpl<DrugDao, Drug> implements IDrugService {
    @Autowired
    private DrugDao drugDao;

    public List<Drug> findAll(){
        return drugDao.selectList(null);
    }
}
